package com.xxgc.demo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 风清扬
 * @since 2023-09-19
 */
@Getter
@Setter
@TableName("xxgc_users")
@Schema(name = "Users", description = "")
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "密码")
    private String passWord;

    @Schema(description = "盐值")
    private String salt;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "身份证号")
    private String idCard;

    @Schema(description = "性别（0女1男-1未知）")
    private Boolean sex;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "手机号码")
    private Long phoneNumber;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(description = "有效字段")
    @TableLogic
    private Boolean flag;
}
